package com.yksj.healthtalk.ui.chatting;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.yksj.healthtalk.comm.BaseFragmentActivity;
import com.yksj.healthtalk.ui.R;

/**
 * 服务清单列表
 * @author zhao
 */
public class ServerListActivity extends BaseFragmentActivity implements OnClickListener {
	String mChatId;
//	String mUserId;
//	EditText mTimeEditText;
//	EditText mPriceEditText;
/*	final Handler mHandler = new Handler(){
		public void handleMessage(android.os.Message msg) {
			if(isFinishing())return;
			switch(msg.what){
			case 100:
				LodingFragmentDialog.dismiss(getSupportFragmentManager());
				ToastUtil.showShort(getApplicationContext(),"请求发送失超时");
				break;
			case 200:
				setResult(RESULT_CANCELED);
				finish();
				break;
			}
		};
	};*/
	
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentView(R.layout.chat_charge_layout);
		//Intent intent = getIntent();
		//mChatId = intent.getStringExtra("chatId");
		//mUserId = intent.getStringExtra("userId");
		initView();
	}
	
	@Override
	public void onClick(View v) {
		switch(v.getId()){
		case R.id.title_back:
			onBackPressed();
			break;
		case R.id.title_right2:
			//doSendChargeReq();
			break;
		}
	}
	
	private void initView(){
		initTitle();
		
		setTitle("服务清单");
		
		setBackBtn("返回",this);
		
//		setRight("确定",this);
		
	}
	
	/**
	 * 收费请求
	 */
/*	private void doSendChargeReq(){
		String price = mPriceEditText.getText().toString();
		String time = mTimeEditText.getText().toString();
		if(price.trim().length() == 0 && time.trim().length() == 0)return;
		SmartFoxClient.sendDoctorCharge(time, price,mChatId,null,0);
		mPriceEditText.setText(null);
		mTimeEditText.setText(null);
		//mHandler.sendEmptyMessageDelayed(100,10*1000);
		LodingFragmentDialog.showLodingDialog(getSupportFragmentManager(),getResources());
	}*/
	
}
